package com.agger.eurekaclientmanagerservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @classname: EurekaClientManagerServiceApplication
 * @description: eureka客户端
 * @author chenhx
 * @date 2020-04-22 12:05:05
 */
@EnableDiscoveryClient
@EnableFeignClients(basePackages="com.agger")     // 开启Feign接口扫描
@ComponentScan(basePackages = "com.agger")        // 定义component扫描路径，否则Hystrix类扫描不到
@SpringBootApplication
public class EurekaClientManagerServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(EurekaClientManagerServiceApplication.class, args);
    }

}
